package cn.wsalix.admin.service;

import java.util.List;

import cn.anlaser.service.ParentService;
import cn.wsalix.admin.entity.SysMenu;
import cn.wsalix.admin.form.MenuForm;
import cn.wsalix.admin.repository.MenuRepository;

public interface MenuService extends ParentService<MenuForm,MenuRepository,SysMenu>{

	List<SysMenu> findUnMenusByRoleId(Long roleId);
	
	List<SysMenu> findMenusByUserId(Long userId);

	SysMenu findByUrl(String currUrl);

	List<SysMenu> findUnsByPermitId(Long permitId);

	public SysMenu findByCodeOne(String code);

	public SysMenu findByNameOne(String name);

	public List<SysMenu> findsByName(String name);

	public List<SysMenu> findsByCode(String code);

	public List<SysMenu> findSubsById(Long parentId);
}
